{% extends "BluehouseappWebBundle:Frontend/layout:layout.html.twig" %}
{% from 'BluehouseappWebBundle:Macros:misc.html.twig'  import pagination %}

{% block body -%}
    <div class="h20"></div>
    <div class="box">
    <div class="box_cell"><span class="box_gray">
                 {% if  member.nickname  %}
                     {{ member.nickname }}
                 {% else %}
                     {{ member.username }}
                 {% endif %}
            最近回复了</span></div>
    {% for postComment in postComments %}
    <div class="box_dock_area">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tbody><tr>
                <td style="padding: 10px 15px 8px 15px; font-size: 12px; text-align: left;"><div class="box_fr"><span class="box_fade">

                                {{ time_diff(postComment.created) }}
                            </span></div>
                        <span class="box_gray">回复了

                            {% if postComment.post.member.nickname %}
                                {{ postComment.post.member.nickname }}
                            {% else %}
                                {{ postComment.post.member.username }}
                            {% endif %}
                            创建的主题 <span class="box_chevron">›</span>
                            <a href="{{path('post_show', { 'id': postComment.post.id }) }}">{{ postComment.post.title }}</a></span></td>
            </tr>
            <tr>
                <td align="left">
                    <div class="box_feedback"></div>
                </td>
            </tr>
            </tbody></table>
    </div>

    <div
            {% if loop.last %}
            class="box_cell">
    {% else %}
    class="box_inner">
        {% endif %}
        <div class="box_reply_content">{{ postComment.content|striptags|raw|nl2br }}</div>
    </div>
    {% endfor %}
    </div>
    {{ pagination(postComments) }}

{% endblock %}